/**
 * 
 */
package com.mycompany.client.widgets;

import com.mycompany.shared.EnvConstants;
import com.smartgwt.client.widgets.form.fields.SelectItem;

/**
 * @author coral.ma
 *
 */
public class CoralSelectItem extends SelectItem {

	public CoralSelectItem(String name, String title) {
		setName(name);
		setTitle(title);
		setType("comboBox");
		setWidth(EnvConstants.CORAL_ITEM_WIDTH);
	}
	
	public CoralSelectItem(String name, String title, String[] dataSource) {
		setName(name);
		setTitle(title);
		setType("comboBox");
		setWidth(EnvConstants.CORAL_ITEM_WIDTH);
		setValueMap(dataSource);
	}
}
